@echo off

set pause=true
if /i "%1"=="/q" (
 set pause=false
 SHIFT
)


RMDIR "..\..\Sidvall\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Caching\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Caching\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.CodeGenerator\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.CodeGenerator\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Data\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Data\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Data.Entity\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Data.Entity\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Data.Sqlite\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Data.Sqlite\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Devices.Uwp\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Devices.Uwp\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.IO\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.IO\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.IO.Compression\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.IO.Compression\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.IO.Uwp\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.IO.Uwp\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Logging.EL\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Logging.EL\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Net\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Net\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Net.Mail\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Net.Mail\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Net.Sms\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Net.Sms\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Office\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Office\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Reflection\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Reflection\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Reflection.Uwp\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Reflection.Uwp\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Reporting\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Reporting\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Security\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Security\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Security.Authentication\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Security.Authentication\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Security.Uwp\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Security.Uwp\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.SystemEnvironment\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.SystemEnvironment\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.SystemEnvironment.Uwp\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.SystemEnvironment.Uwp\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.SystemEnvironment.Windows\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.SystemEnvironment.Windows\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Test\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Test\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.UI\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.UI\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.UI.Uwp\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.UI.Uwp\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.UI.Uwp.Test\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.UI.Uwp.Test\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.UI.Wpf\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.UI.Wpf\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.UI.Wpf.Test\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.UI.Wpf.Test\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Web\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Web\obj" /Q /S
@if errorlevel 1 goto :error

RMDIR "..\..\Sidvall.Web.Host\bin" /Q /S
@if errorlevel 1 goto :error
RMDIR "..\..\Sidvall.Web.Host\obj" /Q /S
@if errorlevel 1 goto :error


@goto :exit



:error
if %returnErrorCode%==false goto exit

@ECHO An error occured - %errorLevel%
PAUSE
@exit errorLevel



:exit
if %pause%==true PAUSE
